#include <stdio.h>
#define NUMBER 50

char * gets_s (char * let, int x);

int main (void)
{
    char letter[99];
    char *s;
    
    s = gets_s(letter, NUMBER - 1);
    // printf("%s", letter);

    getchar();
    getchar();
    return 0;
}

char * gets_s (char * let, int x)
{
    int letter;
    int q;

    for (q = 0; q < x; q++)
    {
        letter = getchar();
        if (letter != EOF)
            let[x] = letter;
        else 
        break;
    }
    if (letter == EOF)
        return NULL;
    else
    {
        let[x] = '\0';
        return let;
    }
    
           
}